package com.plan.service.strategy;

import org.springframework.stereotype.Component;

@Component
public class WangWuHandler implements Handler {

    @Override
    public void AAA(String name) {
        System.out.println("王五完成了AAA任务");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("王五", this);
    }
}